Technical Q&A TB63
Setting a Control's Variant Field


Q: Given that there is no SetControlVariant, what is the proper method to set a control's variant field?

A: None. There is no good way to set a control's variant; standard controls do not support dynamic variants. If you need to change the variant of a custom control after creating the control, it's better not to use variants at all. Instead, let the clients of your control call SetControlData to change the behavior and/or appearance of your control.

[May 03 1999]


Developer Documentation | Technical Notes | Development Kits | Sample Code